home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1997 May / EnigmA AMIGA RUN 18 (1997)(G.R. Edizioni)(IT)[!][issue 1997-05][EAR-CD II].iso / ghost / gs403src_amiga.lha / gs4.03 / unix-end.mak.in < prev    next >
Text File  |  1997-04-12  |  6KB  |  147 lines

  1. #    Copyright (C) 1994, 1995, 1996 Aladdin Enterprises.  All rights reserved.
  2. # This file is part of Aladdin Ghostscript.
  3. # Aladdin Ghostscript is distributed with NO WARRANTY OF ANY KIND.  No author
  4. # or distributor accepts any responsibility for the consequences of using it,
  5. # or for whether it serves any particular purpose or works at all, unless he
  6. # or she says so in writing.  Refer to the Aladdin Ghostscript Free Public
  7. # License (the "License") for full details.
  8. # Every copy of Aladdin Ghostscript must include a copy of the License,
  9. # normally in a plain ASCII text file named PUBLIC.  The License grants you
  10. # the right to copy, modify and redistribute Aladdin Ghostscript, but only
  11. # under certain conditions described in the License.  Among other things, the
  12. # License requires that the copyright notice and this notice be preserved on
  13. # all copies.
  14.  
  15. # Partial makefile common to all Unix and Desqview/X configurations.
  16.  
  17. # This is the very last part of the makefile for these configurations.
  18. # Since Unix make doesn't have an 'include' facility, we concatenate
  19. # the various parts of the makefile together by brute force (in tar_cat).
  20.  
  21. # Define a rule for building profiling configurations.
  22. pg:
  23.     make GENOPT='' CFLAGS='-pg -O $(GCFLAGS) $(XCFLAGS)' LDFLAGS='$(XLDFLAGS) -pg' XLIBS='Xt SM ICE Xext X11' CCLEAF='$(CCC)'
  24.  
  25. # Define a rule for building debugging configurations.
  26. debug:
  27.     make GENOPT='-DDEBUG' CFLAGS='-g -O $(GCFLAGS) $(XCFLAGS)'
  28.  
  29. # The rule for gconfigv.h is here because it is shared between Unix and
  30. # DV/X environments.
  31. gconfigv.h: unix-end.mak $(MAKEFILE) $(ECHOGS_XE)
  32.     $(EXP)echogs -w gconfigv.h -x 23 define USE_ASM -x 2028 -q $(USE_ASM)-0 -x 29
  33.     $(EXP)echogs -a gconfigv.h -x 23 define USE_FPU -x 2028 -q $(FPU_TYPE)-0 -x 29
  34.     $(EXP)echogs -a gconfigv.h -x 23 define EXTEND_NAMES 0$(EXTEND_NAMES)
  35.  
  36. # The following rules are equivalent to what tar_cat does.
  37. # The rm -f is so that we don't overwrite a file that `make'
  38. # may currently be reading from.
  39. GENERIC_MAK_LIST=$(GS_MAK) $(LIB_MAK) $(INT_MAK) $(JPEG_MAK) $(LIBPNG_MAK) $(ZLIB_MAK) $(DEVS_MAK)
  40. UNIX_MAK_LIST=dvx-gcc.mak unixansi.mak unix-cc.mak unix-gcc.mak
  41.  
  42. unix.mak: $(UNIX_MAK_LIST)
  43.  
  44. DVX_GCC_MAK=dgc-head.mak dvx-head.mak $(GENERIC_MAK_LIST) dvx-tail.mak unix-end.mak
  45. dvx-gcc.mak: $(DVX_GCC_MAK)
  46.     rm -f dvx-gcc.mak
  47.     $(CAT) $(DVX_GCC_MAK) >dvx-gcc.mak
  48.  
  49. UNIXANSI_MAK=ansihead.mak unixhead.mak $(GENERIC_MAK_LIST) unixtail.mak unix-end.mak
  50. unixansi.mak: $(UNIXANSI_MAK)
  51.     rm -f unixansi.mak
  52.     $(CAT) $(UNIXANSI_MAK) >unixansi.mak
  53.  
  54. UNIX_CC_MAK=cc-head.mak unixhead.mak $(GENERIC_MAK_LIST) unixtail.mak unix-end.mak
  55. unix-cc.mak: $(UNIX_CC_MAK)
  56.     rm -f unix-cc.mak
  57.     $(CAT) $(UNIX_CC_MAK) >unix-cc.mak
  58.  
  59. UNIX_GCC_MAK=gcc-head.mak unixhead.mak $(GENERIC_MAK_LIST) unixtail.mak unix-end.mak
  60. unix-gcc.mak: $(UNIX_GCC_MAK)
  61.     rm -f unix-gcc.mak
  62.     $(CAT) $(UNIX_GCC_MAK) >unix-gcc.mak
  63.  
  64. # Build the VMS MODULES.LIS file on a Unix system.
  65.  
  66. modules_lis=modules$(CONFIG).lis
  67. $(modules_lis): $(MAKEFILE) $(GENCONF_XE) $(devs_tr)
  68.     $(EXP)genconf @$(devs_tr) -pue "%s" -o $(modules_lis)
  69.  
  70. # Installation
  71.  
  72. TAGS:
  73.     etags -t *.c *.h
  74.  
  75. install: install-exec install-data
  76.  
  77. # The sh -c in the rules below is necessary because the Ultrix `make'
  78. # uses sh -e, which terminates execution of a command if any error occurs,
  79. # even if the command traps the error with ||.
  80. # JOOP: change needed when installing for ixemul
  81. #       $(INSTALL_PROGRAM) $(GS) $(bindir)/$(GS)
  82. #       remove '#' from -mkdir $(bindir)
  83. #       Seems that gnu:bin/mkdir needs '-p' when multiple directories are made
  84. #       added '-p' to all mkdir commands, just in case user makes weird dirs
  85.  
  86. install-exec: $(GS)
  87.     -mkdir $(bindir)
  88.     $(INSTALL_PROGRAM) $(GS) $(bindir)$(GS)
  89.     -mkdir $(scriptdir)
  90.     sh -c 'for f in gsbj gsdj gsdj500 gslj gslp gsnd bdftops font2c \
  91. pdf2dsc pdf2ps printafm ps2ascii ps2epsi ps2pdf wftopfa ;\
  92.     do if ( test -f $(srcdir)/$$f ); then $(INSTALL_PROGRAM) $(srcdir)/$$f $(scriptdir)/$$f; fi;\
  93.     done'
  94.  
  95. MAN1_PAGES=gs pdf2ps ps2ascii ps2epsi ps2pdf
  96. install-data: gs.1
  97.     -mkdir $(mandir)
  98.     -mkdir $(man1dir)
  99.     sh -c 'for f in $(MAN1_PAGES) ;\
  100.     do if ( test -f $(srcdir)/$$f.1 ); then $(INSTALL_DATA) $(srcdir)/$$f.1 $(man1dir)/$$f.$(man1ext); fi;\
  101.     done'
  102.     -mkdir $(datadir)
  103.     -mkdir $(gsdir)
  104.     -mkdir $(gsdatadir)
  105.     sh -c 'for f in Fontmap \
  106. cbjc600.ppd cbjc800.ppd \
  107. gs_init.ps gs_btokn.ps gs_ccfnt.ps gs_cidfn.ps gs_cmap.ps \
  108. gs_dps1.ps gs_fonts.ps gs_kanji.ps gs_lev2.ps gs_pfile.ps gs_res.ps \
  109. gs_setpd.ps gs_statd.ps gs_ttf.ps gs_typ42.ps gs_type1.ps \
  110. gs_dbt_e.ps gs_iso_e.ps gs_ksb_e.ps gs_std_e.ps gs_sym_e.ps \
  111. acctest.ps align.ps bdftops.ps caption.ps decrypt.ps docie.ps \
  112. font2c.ps gslp.ps impath.ps landscap.ps level1.ps lines.ps \
  113. markhint.ps markpath.ps \
  114. packfile.ps pcharstr.ps pfbtogs.ps ppath.ps prfont.ps printafm.ps \
  115. ps2ai.ps ps2ascii.ps ps2epsi.ps ps2image.ps pstoppm.ps \
  116. quit.ps showchar.ps showpage.ps stcinfo.ps stcolor.ps \
  117. traceimg.ps traceop.ps type1enc.ps type1ops.ps unprot.ps \
  118. viewcmyk.ps viewgif.ps viewjpeg.ps viewpcx.ps viewpbm.ps viewps2a.ps \
  119. winmaps.ps wftopfa.ps wrfont.ps zeroline.ps \
  120. gs_l2img.ps gs_pdf.ps \
  121. pdf2dsc.ps \
  122. pdf_base.ps pdf_draw.ps pdf_font.ps pdf_main.ps pdf_sec.ps pdf_2ps.ps \
  123. gs_mex_e.ps gs_mro_e.ps gs_pdf_e.ps gs_wan_e.ps \
  124. gs_pdfwr.ps ;\
  125.     do if ( test -f $(srcdir)/$$f ); then $(INSTALL_DATA) $(srcdir)/$$f $(gsdatadir)/$$f; fi;\
  126.     done'
  127.     -mkdir $(docdir)
  128.     sh -c 'for f in COPYING NEWS PUBLIC README \
  129. c-style.txt current.txt devices.txt drivers.txt fonts.txt helpers.txt \
  130. hershey.txt history1.txt history2.txt history3.txt humor.txt install.txt \
  131. language.txt lib.txt make.txt new-user.txt \
  132. ps2epsi.txt ps2pdf.txt psfiles.txt public.txt \
  133. unix-lpr.txt use.txt xfonts.txt ;\
  134.     do if ( test -f $(srcdir)/$$f ); then $(INSTALL_DATA) $(srcdir)/$$f $(docdir)/$$f; fi;\
  135.     done'
  136.     sh -c 'for f in $(MAN1_PAGES) ;\
  137.     do if ( test -f $(srcdir)/$$f.1 ); then $(INSTALL_DATA) $(srcdir)/$$f.1 $(docdir)/$$f.1; fi;\
  138.     done'
  139.     -mkdir $(exdir)
  140.     for f in alphabet.ps chess.ps cheq.ps colorcir.ps escher.ps golfer.ps \
  141. grayalph.ps snowflak.ps tiger.ps waterfal.ps ;\
  142.     do $(INSTALL_DATA) $(srcdir)/$$f $(exdir)/$$f ;\
  143.     done
  144.